<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <hdjs/>

</head>
<body>
	<div class='wrap'>
        <div class="menu_list">
            <ul>
                <li><a href="{|U:'index'}"  class="action">栏目列表</a></li>
                <li><a href="{|U:'add'}">添加栏目</a></li>
            </ul>
     </div> 
	   		<form method='post'>
				<div class="title-header">添加栏目</div>
				<table class='table1 hd-form'>
					<tr>
						<th>父级</th>
						<td>
							<select name="pid" class='w200'>
								<option value="0">顶级</option>
								<list from='$category' name='$c'>
								<option value="{$c.cid}" <if value="$hd.get.pid eq $c.cid">selected=""</if>>{$c._name}</option>
								</list>	
							</select>
						</td>
					</tr>
					<tr>
						<th class='w100'>栏目名称</th>
						<td>
							<input type="text" name='catname' class='w200'>
						</td>
					</tr>
					<tr>
						<th>关键字</th>
						<td>
							<input type="text" name='keywords' class='w200'>
						</td>
					</tr>
					<tr>
						<th>描述</th>
						<td>
							<textarea name="description" class='w200 h80'></textarea>
						</td>
					</tr>
					<tr>
                        <th>列表页模板</th>
                        <td>
                           <input type="text" name='list_tpl' value='list.html' class='w200'>
                        </td>
                    </tr>
                    <tr>
                        <th>内容页模板</th>
                        <td>
                           <input type="text" name='content_tpl' value='content.html' class='w200'>
                        </td>
                     </tr>
				</table>
				<input type="submit" class='hd-success' >
				</form>
		</div>
		<js file='__CONTROLLER_VIEW__/Js/js.js'/>
</body>
</html>